package cn.iocoder.yudao.module.train.controller.admin.courseclasses.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 班级 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CourseClassesRespVO {

    @Schema(description = "班级主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25477")
    @ExcelProperty("班级主键")
    private Long id;

    @Schema(description = "班级序号")
    @ExcelProperty("班级序号")
    private Integer classNumber;

    @Schema(description = "商品ID", example = "24028")
    @ExcelProperty("商品ID")
    private Long commodityId;

    @Schema(description = "学生人数")
    @ExcelProperty("学生人数")
    private Long studentQuantity;

    @Schema(description = "课程名称")
    @ExcelProperty("课程名称")
    private String courseName;

    @Schema(description = "商品名称")
    @ExcelProperty("商品名称")
    private String commodityName;

    @Schema(description = "老师姓名")
    @ExcelProperty("老师姓名")
    private String teacherName;

    @Schema(description = "课程总课时")
    @ExcelProperty("课程总课时")
    private Integer allCourseTime;

    @Schema(description = "剩余课时")
    @ExcelProperty("剩余课时")
    private Integer remainderCourseTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "开课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime beginTime;

    @Schema(description = "结课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;
}
